home *** CD-ROM | disk | FTP | other *** search
- @clear
- @echo
- @echo Traditional tools.
- @echo
- @echo This category consists of old common UNIX tools.
- @echo This demonstration program assumes that the file DEMOTEST.TXT
- @echo resides in the default directory C:\BINB. If you have changed
- @echo the installation directory, you must end this program with CONTROL-C
- @echo and manually edit the desired directory.
- @echo
- @echo HEAD is used to show the beginning first few lines from afile.
- @echo TAIL is used to show the last few lines.
- @echo PG is used to display a file page by page.
- @echo PR is used to print a file with header information.
- @echo touch is used to change the last modification date of a file.
- @echo It is mainly used with a MAKE-type of a tool in program
- @echo development.
- @echo STRINGS is used to show all printable strings from a binary file.
- @echo WORDS is used to count characters, words and lines.
- @echo EXAPLE:
- @echo If you want to see the 5 first lines from the file demotest.txt, type:
- @echo head -5 c:\BINB\demotest.txt
- @pause
- head -5 c:\BINB\demotest.txt
- @pause
- @echo To see the 10 last lines type:
- @echo tail -10 c:\BINB\demotest.txt
- @pause
- tail -10 c:\BINB\demotest.txt
- @pause
- @echo To see the file page by page, type (it is so small that it fits into 1 page)
- @echo pg c:\BINB\demotest.txt
- @pause
- pg c:\BINB\demotest.txt
- @pause
- @pause To see it with header information, type:
- @echo pr c:\BINB\demotest.txt
- @pause
- pr c:\BINB\demotest.txt
- @pause
- @echo To count the characters, words and lines in it, type:
- @echo words c:\BINB\demotest.txt
- @pause
- words c:\BINB\demotest.txt
- @echo We don't run the STRINGS or TOUCH command here.
- @echo That's all for traditional tools.
- @pause
-
-
-
-